package method;

public class MethodDemo1 {

    //无参无返回值
    static void say(String msg){
        for (int i = 1; i <=100 ; i++) {
            System.out.println(msg);
        }
    }




    public static void main(String[] args) {

        say("hello");

       //方法名字(数值1，  数值2)
       printPerson(5, "张三");
    }
//say("今天");//
//say("你好");

    //无参无返回值
    static void printPerson(int age, String name){
        for (int i = 1; i <=100 ; i++) {
            System.out.println(age+","+name);
        }
    }

}


